com = serial.Serial(self.port,self.baudrate,timeout=1)